<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<tpl>include file ='../head.config.html'</tpl>
</head>
<body> <tpl>include file ='../header.html'</tpl> 
<div id="container761">
  <div class="own_member_main">
 <tpl>include file ='own_menu.html'</tpl>
<div class="member_right">
<div class="new_main_left">
	<div class="new_main_left1">
		<h1 class="new_text"><tpl> $langOSelectPaymentToPay </tpl></h1>
		<i></i>
	</div>
		<b></b>
	</div>
	<div id="own_main_rightop">
		<div id="filtermaincon"></div>
	</div>
<div id="own_main_rightop_line" style="margin-top:-3px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>
      <div id="item_list_border">
		<form name="form1" id="form1" action="own_order.php?action=bid_sel_payment_save" method="post">
              <input type="hidden" name="sp_code" id="sp_code" value="<tpl> $order_array.sp_code </tpl>" />
              <table id="item_list_info">
                <tr>
                  <td width="100" height="35" bgcolor="#F5F9FA">　<strong>
                    <tpl> $langOrderCode </tpl>
                  ：</strong></td>
                  <td height="35" bgcolor="#FCFEFE">　
                  <tpl> $order_array.sp_code </tpl>[<a href="<tpl> $site_url </tpl>/member/own_order.php?action=show&sp_code=<tpl> $order_array.sp_code </tpl>"><tpl> $langOrderInfo </tpl></a>]</td>
                </tr>
                <tr>
                  <td width="100" height="35" bgcolor="#F5F9FA">　<strong>
                    <tpl> $langProName </tpl>
                  ：</strong></td>
                  <td height="35" bgcolor="#FCFEFE">　
                  <tpl> $order_array.p_name </tpl></td>
                </tr>
                <tr>
                  <td width="100" height="35" bgcolor="#F5F9FA">　<strong>
                    <tpl> $langOrderPrice </tpl>
                  ：</strong></td>
                  <td height="35" bgcolor="#FCFEFE">　
                  <tpl> $order_array.unit_price </tpl></td>
                </tr>
                <tr>
                  <td width="100" height="35" bgcolor="#F5F9FA">　<strong>
                    <tpl> $langOrderPayment </tpl>
                  ：</strong></td>
                  <td height="35" bgcolor="#FCFEFE">　
                    <tpl> foreach from=$payment_array item=one key=key </tpl>
                      <input onclick="change_currency(this.value);" type="radio" name="txtPayment" 
                    <tpl> if $one.check eq '1' </tpl>
                    checked="checked"
                    <tpl> /if </tpl>
                    value="<tpl> $key </tpl>" />
                    <tpl> $one.name </tpl>
                     <tpl> /foreach </tpl>
                  </td>
                </tr>
                <tr>
                  <td width="100" height="35" bgcolor="#F5F9FA">　<strong>
                    <tpl> $langOrderCurrency </tpl>
                  ：</strong></td>
                  <td height="35" bgcolor="#FCFEFE">
				  	<tpl> foreach from=$payment_array item=one key=key </tpl><div style="display:none" id="div_<tpl> $key </tpl>_currency">
                        <tpl> assign var='cur_checked_sign' value='' </tpl><tpl> foreach from=$one.currency item=two key=key2 </tpl><input type="radio" 
                        <tpl> if $cur_checked_sign eq '' </tpl>
                        checked="checked"
                        <tpl> /if </tpl>
                        name="<tpl> $key </tpl>_currency" value="<tpl> $key2 </tpl>" />
                        <tpl> $key2 </tpl>
                        :
                        <tpl> $two </tpl>
                       	<tpl> assign var='cur_checked_sign' value=$key </tpl>
                       <tpl> /foreach </tpl>
                      </div>
                      <tpl> /foreach </tpl>
                  </td>
                </tr>
                <tr>
                  <td height="35" colspan="2" align="center"><input name="submit" type="submit" class="new_anniu" value="<tpl> $langOrderSubmit </tpl>" />
                      <input name="button" class="new_anniu"  type="button" onclick="location.href='own_order.php?action=bought'" value="<tpl> $langOrderBack </tpl>" />
                  </td>
                </tr>
              </table>
            </form>
      </div>
	  <div id="reviewed_buyedproduct" style="width:100%; height:100px; float:left; background-image:background-repeat:repeat-x; background-position:left top; margin-top:10px">
</div>
</div>
  <tpl> include file ='../../../html/footer.html' </tpl></div>
  </div>
</body>
</html>
<script>
$(function(){
	$("#form1 input[@type=radio]").each(function(){
		if(this.name == 'txtPayment' && this.checked == true){
			$("#div_"+this.value+"_currency").css('display','');
		}
	});
});
function change_currency(str){
	$("#form1 input[@type=radio]").each(function(){
		if(this.name.indexOf('_currency')){
			$("#div_"+this.value+"_currency").css('display','none');
		}
	});
	$("#div_"+str+"_currency").css('display','');
}
</script>